<template>
	<view>
		<view class="top">
			<van-nav-bar
			  :title="myprops"
				custom-style="background-color: #EDEDED;"
			  @click-left="onClickLeft"
			  @click-right="onClickRight"
			>
			<view slot="left">
				<van-icon name="cross" size="40rpx" />
			</view>
			<van-icon name="ellipsis" slot="right" />
			</van-nav-bar>
		</view>
	</view>
</template>

<script>
	export default {
		name:"navbar",
		props: {
			myprops: {
				type: String,
				default: '九一律师咨询'
			},
		},
		data() {
			return {
				
			};
		},
		methods: {
			onClickLeft() {
				console.log('点击了左边');
			},
			onClickRight() {
				console.log('点击了右边');
			},
		}
	}
</script>

<style lang="scss">

</style>